using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Role
{

    public int hp;
    public string name;
    public bool sex;
    public Vector2 pos;
    public ERun eRun = ERun.none;
    public float runtime;
    public float speed;
    public int bombnum;
    public int flameStep;
    public float reLiveTime;

    public RawImage image;

    public void Init(float _speed,int _bombnum,int _flameStep) 
    {
        speed = _speed;
        bombnum = _bombnum;
        flameStep = _flameStep;
    }
    public void death()
    {
        eRun = ERun.death;
        reLiveTime = 2;
    }

}
public enum ERun
{
    none = 0,
    up,
    down,
    left,
    right,
    death,
}
